#include "Mymap.h"
#include "Myset.h"

namespace fuh{
    void testSet()
    {
        fuh::set<int> s1;
        s1.insert(4);
        s1.insert(1);
        s1.insert(2);
        s1.insert(5);
        s1.insert(3);
        fuh::set<int>::iterator it = s1.begin();
    }
    void testMap()
    {
        string arr[] = { "苹果", "西瓜", "苹果", "西瓜", "苹果", "苹果", "西瓜","苹果", "香蕉", "苹果", "香蕉" };
        map<string, int> m;
        for(auto & it:arr)
        {
            m[it]++;
        }
        auto it = m.cbegin();
        while(it!=m.cend())
        {
            cout<<it->first<<" "<<it->second<<endl;
        }
    }
};
int main()
{
    fuh::testSet();
    // fuh::testMap();
    return 0;
}